﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Lm.Common.ExtensionMethods;

namespace Lm.Common.Auth.Examples
{
    class TempAuthorize
    {
        public void Authorize()
        {
            //var token = new Lm.Common.Auth.Account.UserLogin().Login("liuming", "admin");
            //var list = new Lm.Common.Auth.Role.RoleSelector("ed4fe73a8d574c88a60b77789a37ea91")
            //.GetRoleList();
            //new Lm.Common.Auth.Token.TempAuthorize("8522dd1302274775a2f5b31141afa24a")
            //    .Authorize("liuming", "2012-08-11 20:50:00".ToDatetime());


            //var list = new Lm.Common.Auth.Token.TempAuthorize("8522dd1302274775a2f5b31141afa24a")
            //.GetAuthorizeList();

            //var list = new Lm.Common.Auth.Token.TempAuthorize("707e6016925a44a99c159dc882f15b37")
            //.GetReceivedAuthorizeList();


            //var list = new Lm.Common.Auth.Token.TempAuthorizeAdmin("8522dd1302274775a2f5b31141afa24a")
            //.GetAuthorizeList();

            //new Lm.Common.Auth.Token.TempAuthorizeAdmin("8522dd1302274775a2f5b31141afa24a")
            //.StopAuthorize("ed4fe73a8d574c88a60b77789a37ea91");

            new Lm.Common.Auth.Token.TempAuthorize("8522dd1302274775a2f5b31141afa24a")
           .StopAuthorize("ed4fe73a8d574c88a60b77789a37ea91");
        }
    }
}
